package com.gxa.service.impl;

import com.gxa.mapper.HomepageMapper;
import com.gxa.service.HomepageService;
import com.gxa.vo.HomepageSubVo;
import com.gxa.vo.HotdepartVo;
import com.gxa.vo.HotdoctorVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomepageServiceImpl implements HomepageService {

    @Autowired
    private HomepageMapper homepageMapper;

    @Override
    public Integer queryNum(String time) {

        Integer num = this.homepageMapper.queryNum(time);
        return num;
    }

    @Override
    public Integer queryNumre(String time) {
        Integer numre = this.homepageMapper.queryNumre(time);
        return numre;
    }

    @Override
    public Integer queryNumex(String time) {
        Integer numex = this.homepageMapper.queryNumex(time);
        return numex;
    }

    @Override
    public Integer queryNumlist(String time) {
        Integer Numlist = this.homepageMapper.queryNumlist(time);
        return Numlist;
    }

    @Override
    public Integer queryNumrelist(String time) {

        Integer numrelist = this.homepageMapper.queryNumrelist(time);
        return numrelist;
    }

    @Override
    public List<HomepageSubVo> queryHomeSub(String time) {
        List<HomepageSubVo> homepageSubVos = this.homepageMapper.queryHomeSub(time);
        return homepageSubVos;
    }

    @Override
    public List<HotdoctorVo> queryHotdoctor(String time) {
        List<HotdoctorVo> hotdoctorVos = this.homepageMapper.queryHotdoctor(time);
        return hotdoctorVos;
    }

    @Override
    public List<HotdepartVo> queryHotdepart(String time) {
        List<HotdepartVo> hotdepartVos = this.homepageMapper.queryHotdepart(time);
        return hotdepartVos;
    }
}
